<?php 
include_once dirname(__FILE__)."/common/basic.php";
$skey = trim($_GET[skey]);
$lx = $_GET[lx];
if(!$lx){
	$lx="all";
}
$sj = $_GET[sj];
if(!$sj){
	$sj = "all";
}

	if($skey && $lx && $sj){
		$page = $_GET[page]?$_GET[page]:1;
		$pagesize = 20;
		$total = $func->search_resource_count($skey,$lx,$sj);
		$feeds = $func->search_resource($skey,$lx,$sj, $page, $pagesize);
		$feeds_nav = $func->feeds_nav("search.php?skey=$skey&lx=$lx&sj=$sj", $page, $pagesize, $total);
		$feeds_empty_message = "没有符合条件的数据";
	}else{
		$feeds_empty_message = "请先设置查询条件";
	}

$tl->set_file("search");
$tl->p();
?>